<?php

/*
 * some example routes
 * Cabbie::map_route("router/search/:name", array("controller" => "router", "action" => "search"));
 * Cabbie::map_route("router/search/:name/:number", array("controller" => "router", "action" => "search"));
 */

/* this is the default route */

/*
$HOSTS= explode(".",$_SERVER["SERVER_NAME"]);
if (($HOSTS[0] != "dev") AND ($HOSTS[0] != "upino") AND ($HOSTS[0] != "www")) SESSION::$subdomain=$HOSTS[0];
if(SESSION::$subdomain == "") Cabbie::map_route("", array("controller" => "community", "action" => "main"));
else Cabbie::map_route("", array("controller" => "member", "action" => "home"));
*/

// these are examples remove if not needed

/* used for member / friend searching by type and keyword */
Cabbie::map_route("member/search/:display/:keyword/:offset", array("controller" => "member", "action" => "search"));
Cabbie::map_route("member/search/friends/:display/:keyword", array("controller" => "member", "action" => "search", "friends_only" => 1));

/* used for friends listing by type */
Cabbie::map_route("member/friends/:display", array("controller" => "member", "action" => "friends"));
Cabbie::map_route("member/friends/:display/:offset", array("controller" => "member", "action" => "friends"));

/* shortcut for quickly and neatly colorzing image, with width, height, and color */
Cabbie::map_route("color/colorize/:image/:w/:h/:cl", array("controller" => "color", "action" => "colorize"));

/* used for weblog  */
Cabbie::map_route("weblog/member/:mid/:offset", array("controller" => "weblog", "action" => "member"));

/* used to turn member/home into member/user/:id  */
/// Cabbie::map_route("member/view/:id", array("controller" => "member", "action" => "home"));
// is now set to /member/home/member/10

/* used to provide an id to member/remove/:id  */
Cabbie::map_route("member/remove/:id", array("controller" => "member", "action" => "remove"));

?>